package transaction.lcn;

import com.yiqiniu.easytrans.EnableEasyTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@EnableFeignClients
@SpringCloudApplication
@MapperScan(basePackages = {"transaction.lcn.account.mapper"})
//@EnableDistributedTransaction  //lcn 分布式事务配置
@EnableEasyTransaction
@EnableTransactionManagement
public class LcnAccountApplication {
    public static void main(String[] args) {
        SpringApplication.run(LcnAccountApplication.class);
    }
}